<template>
  <div class="demo">
    <img src="@/assets/banner.jpeg">
  </div>
</template>
<script>
import Watemark from '@/utils/watermark';
export default {
  components: {},
  data() {
    return {};
  },
  created() {
    Watemark.set('我是水印');
  },
  destroyed() {
    Watemark.out(); // 清除水印
  },
  methods: {}
};
</script>
<style lang="less" scoped>
img {
  max-width: 100%;
}
</style>
